I wrote up some code for my project. So far it is working pretty well, but there is still a long ways to go before I will be able to get it to do exactly what I want it to do. It's a start though, and that is making me feel a lot better about the situation, because I do not want to wait until the last minute and run across a bunch of issues.

Here is the code.